﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShippingOrder.aspx.cs"
    EnableEventValidation="false" Inherits="WMS6.Web.Outbound.ShippingOrder" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>Shipping Order</title>
    
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <base target="_self" /> 
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
        
        
         var action = document.getElementById("hdnActionID").value;
            if(action != null && action != "")
            {
                var array = action.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                 initEditNewPage();
            }
          
        }
        
        function newOrder()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "ShippingOrder.aspx?from=" + escape(from);
            return false;
        }
        
         //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        //弹出收货人代码
        function selectConsigneeID() 
        {
            var type = document.getElementById("hdnTypeValue").value;
            //判断单据类型如果是退货时选择供应商
            if (type != null && type.toString().toUpperCase() == "Return".toUpperCase())
            {
                var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtConsigneeID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else 
            {
                var rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtConsigneeID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtConsigneeID").focus();
                document.getElementById("txtConsigneeID").value = rtnValue;
                  document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtConsigneeID_TextChanged","");
            }

        }
        //弹出付款方代码
        function selectPayMentID()
        {
            var rtnValue = popModalWindow('../Configuration/BillingEntityQuery.aspx?action=txtInco_Terms','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtBillToID").focus();
                document.getElementById("txtBillToID").value = rtnValue;
                  document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtBillToID_TextChanged","");
            }
        }
        
        //弹出承运商代码
        function selectCarrierID()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
            }
        }
        
        //弹出分类货位
        function selecetSortationLocation()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtSortation_Location','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSortation_Location").focus();
                document.getElementById("txtSortation_Location").value = rtnValue;
            }
        }
        
        //弹出包装货位
         function selecetPackingLocation()
        {
            var rtnValue = popModalWindow('../Configuration/LocationQuery.aspx?action=txtPacking_Location','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtPacking_Location").focus();
                document.getElementById("txtPacking_Location").value = rtnValue;
            }
        }
        
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
			 
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
		
		//隐藏 报表 DIV    
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
		
		   //弹出 打印 入库验收单 的窗口
        function popPrintOutbound()
        {
            var OrderID = document.getElementById("txtOrderID").value;
            var OwnerID= document.getElementById("txtOwnerID").value;
            window.open('../Common/PrintReport.aspx?rtype=PRINTOUTBOUND&orderID=' + escape(OrderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
		
        //导入ShippingOrder
        function DataImport() {
            var rtnValue = popModalWindow('../Common/ImporData.aspx?action=SHIPPINGORDERDETAIL&OrderID=' + escape(document.getElementById('txtOrderID').value) + '&OwnerID=' + escape(document.getElementById('txtOwnerID').value), 'dialogWidth=520px;dialogHeight=300px;center=yes;resizable=yes;status=no;')

            window.location.href = "ShippingOrder.aspx?from=" + escape(document.getElementById("hdnFrom").value) + "&ID=" + escape(document.getElementById('txtOrderID').value) + "&detail=1";
		   //把导入标识置为1，则页面加载的时候 默认显示 第6个Tab
		   
		   return false;
	}
    //弹出库存窗口
	function showInv(url) {
	    FastPopModalWindow(url, 'dialogWidth=950px;dialogHeight=600px;center=yes;resizable=yes;status=no;')
	}
	 function confirmMsg(code) 
	 {
	     if (code == "F7100_001") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_001") %>')) 
	         {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		 else if (code == "C010") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("C010") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		else if (code == "F7100_034") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_034") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		else if (code == "F7100_035") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_035") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		else if (code == "F7100_036") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_036") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		}
    </script>

    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</head>
<body onbeforeunload="SavePageValue('btnSave','hdnPageQty');">
    <form id="F7011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblShippingOrder" runat="server" CssClass="label_header" Text="发货订单"
                            meta:resourcekey="lblShippingOrder"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                           OnClick="btnGoBack_Click" Enabled="False" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Enabled="False" AccessKey="n" OnClientClick="newOrder();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" OnClientClick="SethdnPageQty('hdnPageQty');" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="d"    OnClientClick="javascript:confirmMsg('F7100_001');"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnRefresh%>"
                            Enabled="False" AccessKey="r" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                    <td><asp:Button ID="btnFinish" runat="server" CssClass="button"  Enabled="False" 
                            Text="<%$Resources:ButtonResource,btnFinish%>" onclick="btnFinish_Click" Visible="False" 
                            /></td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,6)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,6);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;收货人&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,6);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;账单地址&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 3px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,6);"
                id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">&nbsp;运输&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL5">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,6);"
                id="divM5">
                <asp:Label ID="one5" CssClass="navigationlabel" runat="server" meta:resourcekey="one5">其它</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR5">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL6">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',6,6);"
                id="divM6">
                <asp:Label ID="one6" CssClass="navigationlabel" runat="server" meta:resourcekey="one6">订单行</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR6">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTye" runat="server" CssClass="label" Text="订单类型" meta:resourcekey="lblTye"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOrderDate" runat="server" CssClass="label" Text="订单日期" meta:resourcekey="lblOrderDate"></asp:Label><font
                                color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID" runat="server" CssClass="textbox" AutoPostBack="True"
                                OnTextChanged="txtOrderID_TextChanged" meta:resourcekey="txtOrderID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlType" runat="server" CssClass="mediumselectbox" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlType_SelectedIndexChanged" meta:resourcekey="ddlType">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtOrderDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtOrderDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label><font
                                color="red">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOrderGroup" runat="server" CssClass="label" Text="订单分组" meta:resourcekey="lblOrderGroup"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblReferenceNum" runat="server" CssClass="label" Text="销售订单号" meta:resourcekey="lblReferenceNum"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblRequestShipDate" runat="server" CssClass="label" Text="要求发货日期" meta:resourcekey="lblRequestShipDate"></asp:Label><font color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" meta:resourcekey="txtOwnerID"></asp:TextBox><img
                                src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                class="img" onclick="selectOwner();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderGroup" runat="server" CssClass="textbox" meta:resourcekey="txtOrderGroup"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtReferenceNum" runat="server" CssClass="textbox" meta:resourcekey="txtReferenceNum"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtRequestShipDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtRequestShipDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtRequestShipDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPriority" runat="server" CssClass="label" Text="优先级" meta:resourcekey="lblPriority"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTotalQty" runat="server" CssClass="label" Text="总订购量" meta:resourcekey="lblTotalQty"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternOrderID" runat="server" CssClass="label" Text="外部订单号" meta:resourcekey="lblExternOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblActualShipDate" runat="server" CssClass="label" Text="实际发货日期" meta:resourcekey="lblActualShipDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPriority" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPriority">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalQty" runat="server" CssClass="textbox" meta:resourcekey="txtTotalQty"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternOrderID" runat="server" CssClass="textbox" meta:resourcekey="txtExternOrderID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtActualShipDate" runat="server" CssClass="textbox"  Enabled=false    meta:resourcekey="txtActualShipDate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblWareHouseID" runat="server" CssClass="label" Text="收货仓库" Visible="False"
                                meta:resourcekey="lblWareHouseID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblIntransitID" runat="server" CssClass="label" Text="转仓单号" Visible="False"
                                meta:resourcekey="lblIntransitID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternOrderID2" runat="server" CssClass="label" Text="外部订单号2" meta:resourcekey="lblExternOrderID2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDeliveryDate" runat="server" CssClass="label" Text="到货日期" meta:resourcekey="lblDeliveryDate"></asp:Label><font
                                color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlWareHouseID" runat="server" CssClass="mediumselectbox" Visible="False"
                                meta:resourcekey="ddlWareHouseID">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtIntransitID" runat="server" CssClass="textbox" Visible="False"
                                Enabled="False" meta:resourcekey="txtIntransitID"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternOrderID2" runat="server" CssClass="textbox" meta:resourcekey="txtExternOrderID2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDeliveryDate" runat="server" CssClass="textbox" 
                                Height="18px" meta:resourcekey="txtDeliveryDate"></asp:TextBox><img alt="请选择日期" class="img" onclick="setday(this,txtDeliveryDate)" src="../Images/calendar.gif" />
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID1" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblConsigneeID" runat="server" CssClass="label" Text="收货人代码" meta:resourcekey="lblConsigneeID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCompany" runat="server" CssClass="label" Text="收货人名称" meta:resourcekey="lblCompany"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID1" runat="server" CssClass="textbox" meta:resourcekey="txtOrderID1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtConsigneeID" runat="server" CssClass="textbox" OnTextChanged="txtConsigneeID_TextChanged"
                                AutoPostBack="True" meta:resourcekey="txtConsigneeID"></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" id="imgConsigneeID" runat="server" class="img" onclick="selectConsigneeID();" />
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtC_Company" runat="server" CssClass="largetextbox" meta:resourcekey="txtC_Company"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblC_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblC_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Contact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblC_Contact1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Contact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblC_Contact2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_City" runat="server" CssClass="textbox" meta:resourcekey="txtC_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Prov" runat="server" CssClass="textbox" meta:resourcekey="txtC_Prov"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Contact1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Contact1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Contact2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Contact2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblC_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Country" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblC_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Phone1" runat="server" CssClass="label" Text="电话1" meta:resourcekey="lblC_Phone1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Phone2" runat="server" CssClass="label" Text="电话2" meta:resourcekey="lblC_Phone2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Zip" runat="server" CssClass="textbox" meta:resourcekey="txtC_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Country" runat="server" CssClass="textbox" meta:resourcekey="txtC_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Phone1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Phone1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Phone2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Phone2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblC_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblC_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Fax1" runat="server" CssClass="label" Text="传真1" meta:resourcekey="lblC_Fax1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Fax2" runat="server" CssClass="label" Text="传真2" meta:resourcekey="lblC_Fax2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="3">
                            <asp:TextBox ID="txtC_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtC_Address"></asp:TextBox>
                        </td>
                        <td width="180px" class="style1">
                            <asp:TextBox ID="txtC_Fax1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Fax1"></asp:TextBox>
                        </td>
                        <td width="180px" class="style1">
                            <asp:TextBox ID="txtC_Fax2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Fax2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_Email1" runat="server" CssClass="label" Text="电子邮件1" meta:resourcekey="lblC_Email1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Email2" runat="server" CssClass="label" Text="电子邮件2" meta:resourcekey="lblC_Email2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Email1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Email1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Email2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Email2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID2" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblBillToID" runat="server" CssClass="label" Text="付款方代码" meta:resourcekey="lblBillToID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Company" runat="server" CssClass="label" Text="付款方名称" meta:resourcekey="lblB_Company"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID2" runat="server" CssClass="textbox" meta:resourcekey="txtOrderID2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtBillToID" runat="server" CssClass="textbox" OnTextChanged="txtBillToID_TextChanged"
                                AutoPostBack="True" meta:resourcekey="txtBillToID"></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" class="img" id="imgBillToID" runat="server" onclick="selectPayMentID();" />
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtB_Company" runat="server" CssClass="largetextbox" meta:resourcekey="txtB_Company"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblB_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblB_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Contact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblB_Contact1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Contact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblB_Contact2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_City" runat="server" CssClass="textbox" meta:resourcekey="txtB_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Prov" runat="server" CssClass="textbox" meta:resourcekey="txtB_Prov"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Contact1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Contact1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Contact2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Contact2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblB_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Country" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblB_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Phone1" runat="server" CssClass="label" Text="电话1" meta:resourcekey="lblB_Phone1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Phone2" runat="server" CssClass="label" Text="电话2" meta:resourcekey="lblB_Phone2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Zip" runat="server" CssClass="textbox" meta:resourcekey="txtB_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Country" runat="server" CssClass="textbox" meta:resourcekey="txtB_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Phone1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Phone1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Phone2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Phone2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblB_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblB_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Fax1" runat="server" CssClass="label" Text="传真1" meta:resourcekey="lblB_Fax1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Fax2" runat="server" CssClass="label" Text="传真2" meta:resourcekey="lblB_Fax2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="3">
                            <asp:TextBox ID="txtB_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtB_Address"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Fax1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Fax1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Fax2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Fax2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_Email1" runat="server" CssClass="label" Text="电子邮件1" meta:resourcekey="lblB_Email1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Email2" runat="server" CssClass="label" Text="电子邮件2" meta:resourcekey="lblB_Email2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Email1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Email1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Email2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Email2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_4" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID3" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblInco_Terms1" runat="server" CssClass="label" Text="交货条款" meta:resourcekey="lblInco_Terms1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDoor" runat="server" CssClass="label" Text="门" meta:resourcekey="lblDoor"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTrailer_Number" runat="server" CssClass="label" Text="车号" meta:resourcekey="lblTrailer_Number"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrder3" runat="server" CssClass="textbox" meta:resourcekey="txtOrder3"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlIncoTerm" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlIncoTerm">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDoor" runat="server" CssClass="textbox" meta:resourcekey="txtDoor"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTrailer_Number" runat="server" CssClass="textbox" meta:resourcekey="txtTrailer_Number"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrierID" runat="server" CssClass="label" Text="承运商代码" meta:resourcekey="lblCarrierID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPayment_Term" runat="server" CssClass="label" Text="付款条款" meta:resourcekey="lblPayment_Term"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblRoute" runat="server" CssClass="label" Text="路线" meta:resourcekey="lblRoute"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTrailer_Owner" runat="server" CssClass="label" Text="车主" meta:resourcekey="lblTrailer_Owner"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierID" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierID"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectCarrierID();" />
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPaymentTerm" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPaymentTerm">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtRoute" runat="server" CssClass="textbox" meta:resourcekey="txtRoute"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTrailer_Owner" runat="server" CssClass="textbox" meta:resourcekey="txtTrailer_Owner"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrierName" runat="server" CssClass="label" Text="承运商名称" meta:resourcekey="lblCarrierName"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDischarge_Place" runat="server" CssClass="label" Text="卸货地" meta:resourcekey="lblDischarge_Place"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStop" runat="server" CssClass="label" Text="站点" meta:resourcekey="lblStop"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDriver_Name" runat="server" CssClass="label" Text="司机" meta:resourcekey="lblDriver_Name"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierName" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierName"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDischarge_Place" runat="server" CssClass="textbox" meta:resourcekey="txtDischarge_Place"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtStop" runat="server" CssClass="textbox" meta:resourcekey="txtStop"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDriver_Name" runat="server" CssClass="textbox" meta:resourcekey="txtDriver_Name"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblDeparture_Date" runat="server" CssClass="label" Text="离开日期" meta:resourcekey="lblDeparture_Date"></asp:Label><font
                                color="red">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDelivery_Place" runat="server" CssClass="label" Text="交货地" meta:resourcekey="lblDelivery_Place"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStage" runat="server" CssClass="label" Text="暂存区" meta:resourcekey="lblStage"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblContainer_Type" runat="server" CssClass="label" Text="货柜类型" meta:resourcekey="lblContainer_Type"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtDeparture_Date" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtDeparture_Date"></asp:TextBox><img src="../Images/calendar.gif"
                                    class="img" alt="请选择日期" onclick="setday(this,txtDeparture_Date)" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDelivery_Place" runat="server" CssClass="textbox" meta:resourcekey="txtDelivery_Place"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtStage" runat="server" CssClass="textbox" meta:resourcekey="txtStage"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlContainerType" runat="server" CssClass="mediumselectbox"
                                meta:resourcekey="ddlContainerType">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblTransportion_Mode" runat="server" CssClass="label" Text="运输方式"
                                meta:resourcekey="lblTransportion_Mode"></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:Label ID="lblTransportion_Service" runat="server" CssClass="label" Text="运输服务"
                                meta:resourcekey="lblTransportion_Service"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblContainer_Qty" runat="server" CssClass="label" Text="货柜数量" meta:resourcekey="lblContainer_Qty"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlTransportionMode" runat="server" CssClass="mediumselectbox"
                                meta:resourcekey="ddlTransportionMode">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtTransportion_Service" runat="server" CssClass="largetextbox"
                                meta:resourcekey="txtTransportion_Service"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtContainer_Qty" runat="server" CssClass="textbox" meta:resourcekey="txtContainer_Qty"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_5" style="display: none;">
                <table width="720px"  style=" display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID4" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblSortation_Location" runat="server" CssClass="label" Text="分类货位"
                                meta:resourcekey="lblSortation_Location"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段1" meta:resourcekey="lblUdf1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段6" meta:resourcekey="lblUdf6"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrder4" runat="server" CssClass="textbox" meta:resourcekey="txtOrder4"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtSortation_Location" runat="server" CssClass="textbox" meta:resourcekey="txtSortation_Location"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selecetSortationLocation();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblHandling_Type" runat="server" CssClass="label" Text="处理类型" meta:resourcekey="lblHandling_Type"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblPacking_Location" runat="server" CssClass="label" Text="包装货位" meta:resourcekey="lblPacking_Location"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段2" meta:resourcekey="lblUdf2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段7" meta:resourcekey="lblUdf7"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlHandingType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlHandingType">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtPacking_Location" runat="server" CssClass="textbox" meta:resourcekey="txtPacking_Location"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selecetPackingLocation();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                    <td colspan="2">
                            <asp:Label ID="lblRemark2" runat="server" CssClass="label" Text="拣货说明" meta:resourcekey="lblRemark2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段3" meta:resourcekey="lblUdf3"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段8" meta:resourcekey="lblUdf8"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:TextBox ID="txtRemark2" runat="server" CssClass="largetextbox" meta:resourcekey="txtRemark2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>                        
                        <td colspan="2">
                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf4" runat="server" CssClass="label" Text="自定义字段4" meta:resourcekey="lblUdf4"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf9" runat="server" CssClass="label" Text="自定义字段9" meta:resourcekey="lblUdf9"></asp:Label>
                        </td>
                    </tr>
                    <tr>                       
                         <td colspan="2" rowspan="3">
                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtB_Address"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                       
                        <td width="180px">
                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段5" meta:resourcekey="lblUdf5"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                     
                        <td width="180px">
                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                        </td>
                    </tr>
                     <tr height=10px>
                      <td width="180px">
                      </td>
                       <td width="180px">
                      </td>
                       <td width="180px">
                      </td>
                       <td width="180px">
                      </td>
                     </tr>
                    <tr>
                     <td width="180px">
                            <asp:CheckBox ID="chkShipTogether" runat="server" CssClass="checkbox" Text="合并发货"
                                meta:resourcekey="chkShipTogether" />
                        </td>
                        <td width="180px">
                            <asp:CheckBox ID="chkEnablePacking" runat="server" CssClass="selectbox" Text="包装订单"
                                meta:resourcekey="chkEnablePacking" />
                        </td>
                         <td width="180px">
                            <asp:CheckBox ID="chkBatchFlag" runat="server" CssClass="selectbox" Text="是否批量订单" Enabled="false"
                               />
                        </td>
                          <td width="180px"></td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_6" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            OnClientClick="javascript: if(document.getElementById('hdnOrderID').value == ''){ SethdnPageQty('hdnPageQty'); if(confirmMsg('F7100_034')) {return true;} else{ return false;} }"
                                            OnClick="btnAddDetail_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                            OnClientClick="javascript:if(confirmMsg('C010')) return true; else return false;"
                                            OnClick="btnDeleteDetail_Click" meta:resourcekey="btnDeleteDetail" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnExplode" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnExplode%>"
                                            OnClientClick="javascript:if(confirmMsg('F7100_035')) return true; else return false;"
                                            OnClick="btnExplode_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnImportData" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnImportData%>"
                                            OnClientClick="javascript:if(document.getElementById('hdnOrderID').value == ''){  SethdnPageQty('hdnPageQty'); if(confirmMsg('F7100_036')) return true; else return false; }"
                                            OnClick="btnImportData_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvOrderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                    AllowPaging="True" CssClass="gridview" DataKeyNames="ORDERID,LINEID,STATUS" Width="3800px" oninit="gvOrderDetail_Init" 
                                    OnRowDataBound="gvOrderDetail_RowDataBound" OnPageIndexChanging="gvOrderDetail_PageIndexChanging"
                                    OnSorting="gvOrderDetail_Sorting" meta:resourcekey="gvOrderDetail">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <PagerStyle CssClass="GridViewPageStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:TemplateField meta:resourcekey="TemplateField">
                                            <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7011','gvOrderDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvOrderDetail');"
                                                    meta:resourcekey="CheckBox1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvOrderDetail');"
                                                    meta:resourcekey="CheckBox2" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="Detail">
                                            <ItemTemplate>
                                                <a href='<%# FormatUrl("ShippingOrderDetail.aspx?type=edit&from=list&ID={0}&SeqNO={1}&OwnerID={2}&SkuID={3}&BatchFlag={4}",Eval("ORDERID").ToString(),Eval("LineID").ToString(),Eval("OWNERID").ToString(),Eval("SkuID").ToString(),this.hdnBatchFlag.Value) %>'
                                                    target="_self">
                                                    <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                            <ItemStyle CssClass="GridViewRowWidth_40" />
                                        </asp:BoundField>
                                        <%--<asp:BoundField DataField="SkuID" HeaderText="货品" FooterText="货品" SortExpression="SkuID"
                                            meta:resourcekey="SkuID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>--%>
                                        <asp:TemplateField HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID" meta:resourcekey="SkuID">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuID" runat="server" Text='<%# Eval("SkuID").ToString() %>' onmouseover="this.style.cursor='hand';this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                                            meta:resourcekey="SkuDescr">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr").ToString() %>'
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PACKID" HeaderText="包装" FooterText="包装" SortExpression="PACKID"
                                            meta:resourcekey="PACKID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="UOMID" HeaderText="单位" FooterText="单位" SortExpression="UOMID"
                                            meta:resourcekey="UOMID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="STATUSD" HeaderText="状态" FooterText="状态" SortExpression="STATUSD"
                                            meta:resourcekey="STATUSD">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" SortExpression="ORIGINALQTY"
                                            meta:resourcekey="ORIGINALQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblORIGINALQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINALQTY").ToString()) %>'
                                                    meta:resourcekey="lblORIGINALQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="预分配数量" HeaderText="预分配数量" SortExpression="PREALLOCATEDQTY"
                                            meta:resourcekey="PREALLOCATEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblPREALLOCATEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("PREALLOCATEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblPREALLOCATEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" SortExpression="ALLOCATEDQTY"
                                            meta:resourcekey="ALLOCATEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblALLOCATEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ALLOCATEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblALLOCATEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="拣货数量" HeaderText="拣货数量" SortExpression="PICKEDQTY"
                                            meta:resourcekey="PICKEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblPICKEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("PICKEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblPICKEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="SHIPPEDQTY"
                                            meta:resourcekey="SHIPPEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSHIPPEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("SHIPPEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblSHIPPEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="单价" HeaderText="单价" SortExpression="UnitPrice" meta:resourcekey="UnitPrice">
                                            <ItemTemplate>
                                                <asp:Label ID="lblUnitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UnitPrice").ToString()) %>'
                                                    meta:resourcekey="lblUnitPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="金额" HeaderText="金额" SortExpression="ExtendedPrice"
                                            meta:resourcekey="ExtendedPrice">
                                            <ItemTemplate>
                                                <asp:Label ID="lblExtendedPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("ExtendedPrice").ToString()) %>'
                                                    meta:resourcekey="lblExtendedPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="允许替代" HeaderText="允许替代" SortExpression="OkToSubstitute"
                                            meta:resourcekey="OkToSubstitute">
                                            <ItemTemplate>
                                                <asp:Label ID="lblOkToSubstitute" runat="server" Text='<%# Eval("OkToSubstitute").ToString() =="0"?"N":"Y" %>'
                                                    meta:resourcekey="lblOkToSubstitute"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="IsSubstitute" HeaderText="替代料" FooterText="替代料" SortExpression="IsSubstitute"
                                            meta:resourcekey="IsSubstitute">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OriginalLineID" HeaderText="原行号" FooterText="原行号" SortExpression="OriginalLineID"
                                            meta:resourcekey="OriginalLineID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OriginalSku" HeaderText="原货品代码" FooterText="原货品代码" SortExpression="OriginalSku"
                                            meta:resourcekey="OriginalSku">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ExternalLot" HeaderText="外部批号" FooterText="外部批号" SortExpression="ExternalLot">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="VendorID" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="VendorID">
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr01" HeaderText="批次属性01" FooterText="批次属性01" SortExpression="LotAttr01">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr02" HeaderText="批次属性02" FooterText="批次属性02" SortExpression="LotAttr02">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr03" HeaderText="批次属性03" FooterText="批次属性03" SortExpression="LotAttr03">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr04" HeaderText="批次属性04" FooterText="批次属性04" SortExpression="LotAttr04">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr05" HeaderText="批次属性05" FooterText="批次属性05" SortExpression="LotAttr05">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr06" HeaderText="批次属性06" FooterText="批次属性06" SortExpression="LotAttr06">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr07" HeaderText="批次属性07" FooterText="批次属性07" SortExpression="LotAttr07">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr08" HeaderText="批次属性08" FooterText="批次属性08" SortExpression="LotAttr08">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr09" HeaderText="批次属性09" FooterText="批次属性09" SortExpression="LotAttr09">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LotAttr10" HeaderText="批次属性10" FooterText="批次属性10" SortExpression="LotAttr10">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="ProduceDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ProduceDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="ExpiryDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ExpiryDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="ReceiptDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblReceiptDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ReceiptDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" SortExpression="ActualShipDate">
                                            <ItemTemplate>
                                                <asp:Label ID="lblActualShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ActualShipDate").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_150" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <asp:GridView ID="gvPickDetail" runat="server" AutoGenerateColumns="False"  AllowSorting="True"
                                     AllowPaging="True" CssClass="gridview" Width="1000px" Visible="false"
                                     DataKeyNames="PickDetailID,Status" onrowdatabound="gvPickDetail_RowDataBound" 
                                     onpageindexchanging="gvPickDetail_PageIndexChanging" 
                                     onsorting="gvPickDetail_Sorting" meta:resourcekey="gvPickDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField2">
                                             <HeaderTemplate>
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox1Resource3" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource3" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox2Resource3" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="OrderLineId" HeaderText="行号" FooterText="行号" 
                                             SortExpression="OrderLineId" meta:resourcekey="OrderLineId">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="PickDetailID" HeaderText="拣货单号" FooterText="拣货单号" 
                                             SortExpression="PickDetailID" meta:resourcekey="PickDetailID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="StatusD" HeaderText="状态" FooterText="状态" 
                                             SortExpression="StatusD" meta:resourcekey="StatusD">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Lot" HeaderText="批号" FooterText="批号" 
                                             SortExpression="Lot" meta:resourcekey="Lot">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <%--<asp:BoundField DataField="Loc" HeaderText="来源货位" FooterText="来源货位" 
                                             SortExpression="Loc" meta:resourcekey="Loc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="ToLoc" HeaderText="目标货位" FooterText="目标货位" 
                                             SortExpression="ToLoc" meta:resourcekey="ToLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="LpnID" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>--%>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                           <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                                            meta:resourcekey="SkuDescr">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr").ToString() %>'
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />
                                        </asp:TemplateField>
                                         <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="AllocatedQty" 
                                             meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                     meta:resourcekey="lblQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="PackID" HeaderText="包装" FooterText="包装" 
                                             SortExpression="PackID" meta:resourcekey="PackID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>   
                                         <asp:BoundField DataField="UomID" HeaderText="单位" FooterText="单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <%--<asp:BoundField DataField="CaseID" HeaderText="箱号" FooterText="箱号" 
                                             SortExpression="CaseID" meta:resourcekey="CaseID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="DropID" HeaderText="落放ID" FooterText="落放ID" 
                                             SortExpression="DropID" meta:resourcekey="DropID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                       --%>
                                     </Columns>
                                 </asp:GridView>
                            </div>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
                   <div style="margin-left: 10px" id="totalOrderDetail" runat="server">
                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                                 <td class="Result_01">
                                     总计：
                                 </td>
                                 <td class="Result_02" >
                                     <table>
                                         <tr>
                                         <td Style="margin-right: 20px;"> &nbsp; &nbsp; </td>
                                             <td  >
                                                 <asp:Label ID="lblTotalOriginal" runat="server" Text="订货数量:" class="label" ></asp:Label>
                                                 <asp:Label ID="lblTotalOriginalQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalPreallocated" runat="server" Text="预分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalPreallocatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalAllcated" runat="server" Text="分配数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalAllcatedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalPicked" runat="server" Text="拣货数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalPickedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                             <td>
                                                 <asp:Label ID="lblTotalShipped" runat="server" Text="发货数量:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalShippedQty" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                                 <td>
                                                 <asp:Label ID="lblTotalUnit" runat="server" Text="单价:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalUnitPrice" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                               <td>
                                                 <asp:Label ID="lblTotalExtended" runat="server" Text="金额:" class="label" ></asp:Label><asp:Label
                                                     ID="lblTotalExtendedPrice" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                             </td>
                                         </tr>
                                     </table>
                                 </td>
                                 <td class="Result_03">
                                 </td>
                             </tr>
                              <tr  style="height:20px">
                                <td></td>
                                </tr>
                         </table>
                     </div>
            </div>
        </div>
        <input type="hidden" id="hiddenFlag" />
        <input type="hidden" id="hdnLineID" runat="server" />
        <input type="hidden" id="hdnBatchFlag" runat="server" />
        <input type="hidden" id="hdnOrderID" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" value="0" />
        <input type="hidden" id="hdnCopy" runat="server" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnPageQty" runat="server" value="0" />
        <input type="hidden" id="hdnPageType" runat="server" value="0" />        
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdnTypeValue" runat="server" />
        <input type="hidden" id="hdnActionID" runat="server" />
        </ContentTemplate>
             
        </asp:UpdatePanel>
    </div>
    </form>
    <input type="hidden" id="hiddenReportFlag" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnPrintOutbound" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnPrintOutbound" runat="server" Text="<%$Resources:ButtonResource,lnkbtnPrintOutbound%>"
                        OnClientClick="popPrintOutbound();" ></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
	<!--
		hiddenReportDiv();
		hiddenCalendarDiv();
	//-->
</script>

